package com.aspose.cells;

class zvk {
   private int a;
   private com.aspose.cells.b.a.b.a.zg b = null;
   private zacp c;
   private zbtb d;

   zacp a() {
      if (this.c == null) {
         this.c = new zacp();
      }

      return this.c;
   }

   zbtb b() {
      if (this.d == null) {
         this.d = new zbtb();
      }

      return this.d;
   }

   int c() {
      return this.a;
   }

   void a(int var1) {
      this.a = var1;
   }

   void a(Color var1, Color var2, int var3) {
      this.a = 2;
      this.b = new com.aspose.cells.b.a.b.a.zg(var3, var1, var2);
   }

   public com.aspose.cells.b.a.b.zc a(zvm var1, com.aspose.cells.b.a.b.a.ze var2, float var3, float var4) {
      switch(this.a) {
      case 0:
         return this.c.a(var1, var2, var3, var4);
      case 1:
      case 2:
         return this.a(var2, false, 1.0F);
      default:
         return new com.aspose.cells.b.a.b.zu(Color.getWhite());
      }
   }

   public com.aspose.cells.b.a.b.zc a(com.aspose.cells.b.a.b.zq var1) {
      com.aspose.cells.b.a.b.a.ze var2 = new com.aspose.cells.b.a.b.a.ze();
      var2.b(var1);
      return this.a(var2, false, 1.0F);
   }

   public com.aspose.cells.b.a.b.zc a(com.aspose.cells.b.a.b.a.ze var1, boolean var2, float var3) {
      return this.a(var1, (com.aspose.cells.b.a.b.zm)null, var2, var3);
   }

   public com.aspose.cells.b.a.b.zc a(com.aspose.cells.b.a.b.a.ze var1, com.aspose.cells.b.a.b.zm var2, boolean var3, float var4) {
      switch(this.a) {
      case 0:
         return this.a().a(var1, (com.aspose.cells.b.a.b.zm)null, var3, var4);
      case 1:
         return this.b().a(var1, var4);
      case 2:
         Color var5 = Color.fromArgb(this.b.c().getA() & 255, (int)((float)(this.b.c().getR() & 255) * var4), (int)((float)(this.b.c().getG() & 255) * var4), (int)((float)(this.b.c().getB() & 255) * var4));
         Color var6 = Color.fromArgb(this.b.b().getA() & 255, (int)((float)(this.b.b().getR() & 255) * var4), (int)((float)(this.b.b().getG() & 255) * var4), (int)((float)(this.b.b().getB() & 255) * var4));
         return new com.aspose.cells.b.a.b.a.zg(this.b.d(), var5, var6);
      default:
         return new com.aspose.cells.b.a.b.zu(Color.getWhite());
      }
   }
}
